<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initSpecialRoutes()
	{
		$frontController = Zend_Controller_Front::getInstance();
		
		$router = $frontController->getRouter();
		
		$router->addRoute(
			'showAlbumImages',
			new Zend_Controller_Router_Route('/album/show/:albumid', array('controller' => 'album', 'action' => 'show'))
		);
		
		$router->addRoute(
			'listAlbumImages',
			new Zend_Controller_Router_Route('/image/show/:albumid', array('controller' => 'image', 'action' => 'index'))
		);
		
		$router->addRoute(
			'passImageIDtoMetadata',
			new Zend_Controller_Router_Route('/metadata/add/:imageid', array('controller' => 'metadata', 'action' => 'add'))
		);
	}
}

